gtkwidget: Ensure unrealization during event dispatching cancels gestures
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 10 Sep 2015 12:18:04 +0000 (14:18 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 14 Sep 2015 15:38:27 +0000 (17:38 +0200)
commit13873d2c507783042df55ad2c48f37a346121fd0
tree497a5f6103552203c1a494cdfabc7ab32e07aea2
parent0dae974b962be0d0928a919cd6fa5407f1ba38dd
gtkwidget: Ensure unrealization during event dispatching cancels gestures

We use to rely on grab broken events for most of the event sequence
lifetime, this breaks though on GDK_BUTTON_RELEASE/GDK_TOUCH_END, as there's
no longer a grab at that time.

For these cases (and all others where there's destroy/unrealize calls
involved during event dispatching), catch this on the late
WIDGET_REALIZED_FOR_EVENT calls on widget event handling functions.

https://bugzilla.gnome.org/show_bug.cgi?id=754098
gtk/gtkwidget.c